mixin foreign-images(...arg)
  g
    foreignObject(width=`100%`, height=`100%`, x=`0`, y=`0`)
      section(style=`user-select:text;overflow:hidden;text-align:center;line-height:0;`)
        each idx in arg
          -var {url, width, height} = images[idx]
          svg(style=`background-image:url("${url}");background-size:100%;background-repeat:no-repeat;display:block;line-height:0;margin-top:-1px`, viewBox=`0 0 ${width} ${height}`)
